package com.task;

import com.service.log4jService;
import java.io.PrintStream;
import java.net.URL;
import java.util.Date;
import org.apache.log4j.PropertyConfigurator;

public class Quartz
{
  log4jService log4jService;

  public log4jService getLog4jService()
  {
    return this.log4jService;
  }

  public void setLog4jService(log4jService log4jService)
  {
    this.log4jService = log4jService;
  }

  void logUtil() {
    System.out.println(new Date());
    this.log4jService.UpdateFilePath();
    PropertyConfigurator.configure(getClass().getResource("/").getFile() + "log4j.properties");
  }
}